package com.uniriho.lxr0811_7300_bl.ui.sam

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.uniriho.lxr0811_7300_bl.ble.BluetoothChatService

class ViewModel_Sam : ViewModel() {
    val result by lazy {
        MutableLiveData<String>()
    }

    val resultTV: LiveData<String> = result

    fun sendData(data: String) {
        BluetoothChatService.getInstance().sendData(data,result)

    }
}